/**
 * author: zhou
 * date: 2017.10.18
 * description: 默认配置文件,开发模式使用
 */

// 环境变量
const server = {
    port: 3000,
    env: 'development'
};

// md5key
const md5key = 'e179e5be641be4575ab15ccb7654a119';

// mongo 连接配置
const mongoOptions = {
    url: 'mongodb://localhost:27017/students',
    options: {
        reconnectTries: 30,
        poolSize: 5,
        useMongoClient: true,
        keepAlive: true
    }
};

// redis 连接配置
const redisOptions = {
    port: 6379,
    host: '127.0.0.1',
    family: 4,
    password: '123456',
    db: 0,
    connectTimeout: 60000,
    keepAlive: 10
};

module.exports = {
    server,
    md5key,
    mongoOptions,
    redisOptions
};